package com.tianma.springcloud;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.WeightedResponseTimeRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lgc
 * @createDate 2020/9/2 - 17:53
 */
@Configuration
public class MyRulsConfig {
    @Bean
    public IRule myRule(){
        return new WeightedResponseTimeRule();
    }
}
